<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	<style>
		.container{
			border:5px solid black;
			width:430px;
			height:210px;
			margin:40px auto;
		}
		*{
			margin:0;
			padding:0;
		}
		.header{
			text-align: center;
			margin:50px;
		}
		ul{
			margin-right:-10px;
			overflow: hidden;
		}
		ul li{
			list-style: none;
			width:100px;
			height:100px;
			float:left;
			margin-right:10px;
			margin-bottom:10px;
			background-color: rgb(95, 95, 232);
		}
	</style>
</head>
<body>
	<div class="header">
		<h1>8方块布局</h1>
		<p>利用8方块布局来检验-margin奥妙<sub>动手做一便才知道奥妙在哪里？</sub></p>
	</div>
	<div class="container">
		<ul>
			<li>方块1</li>
			<li>方块2</li>
			<li>方块3</li>
			<li>方块4</li>
			<li>方块5</li>
			<li>方块6</li>
			<li>方块7</li>
			<li>方块8</li>
		</ul>
	</div>
</body>
</html>